#!/usr/bin/env python
# coding=utf-8
"""
这是一个虚拟人生的小游戏
"""
from prettytable import PrettyTable

class bcolors:
	LIGHT_GREEN = '\033[92m'
	LIGHT_YELLOW = '\033[93m'
	LIGHT_PURPLE = '\033[95m'
	LIGHT_BLUE = '\033[94m'
	LIGHT_RED = '\033[91m'
	LIGHT_CYAN = '\033[96m'
	CYAN = '\033[36m'
	BLUE = '\033[34m'
	GREEN = '\033[32m'
	YELLOW = '\033[33m'
	PURPLE = '\033[35m'
	RED = '\033[31m'
	END = '\033[0m'

class People:
	"""定义了一个人的父类"""

	def __init__(self, name, age, gender, lover, job, assets=0):
		self.name = name
		self.age = age
		self.gender = gender
		self.lover = lover
		self.job = job
		self.assets = assets

	def get_lover(self):
		print self.name, "lover: ", self.lover

	def get_job(self):
		print self.name, "job is:", self.job

	def get_assets(self):
		print self.name, "assets ", self.assets

class Gfs(People):
	"""高富帅子类"""

	def __init__(self, name, age, gender, lover, job, assets):
		People.__init__(self, name, age, gender, lover, job, assets)
		People.assets = 80

class Cinderella(People):
	"""一般人子类"""

	def __init__(self, name, age, gender, lover, job):
		People.__init__(self, name, age, gender, lover, job)
		People.assets = 60

class Ds(People):
	"""屌丝的子类"""

	def __init__(self, name, age, gender, lover, job, assets):
		People.__init__(self, name, age, gender, lover, job, assets)
		People.assets = 50

class Association:
	"""定义了一个交往的类"""

	def __init__(self, usercp):
		self.usercp = usercp

	def flower(self):
		People.assets += 1

	def iphone(self):
		pass

	def shopping(self):
		pass

	def dinner(self):
		People.assets += 2
		print People.assets

	def driving(self):
		pass

	def buy_house(self):
		pass

class Company:
	"""定义了一个公司的父类"""

	def __init__(self, cname):
		self.cname = cname

	# self.position = position
	# self.salary = salary

class Net_bar(Company):
	pass

class University(Company):
	pass

class Oldboy_school(Company):
	pass

class General_company(Company):
	pass

class Senior_company(Company):
	pass

def test():
	while True:
		print bcolors.LIGHT_GREEN + '''
	================================================================
	++                      1、前言                               ++
	++                      2、相携情缘                            ++
	++                      3、人生旅程                            ++
	++                      4、青春朦胧                            ++
	++                      5、釜底抽薪                            ++
	++                      6、石破天惊                            ++
	++                      7、一波三折                            ++
			''' + bcolors.END
		f_input = raw_input("欢迎进入前言，按 next 继续：")
		#友情提示部分
		if f_input.lower() != 'next':
			print "你个熊孩子，让你输入next，看好哈~"
			continue
		else:
			Peter = Gfs(name='Peter', age='20', gender='male', lover='self', job='go school', assets=30)
			John = Ds(name='John', age='20', gender='male', lover='Liz', job='support', assets=60)
			Liz = Cinderella(name='liz', age='20', gender='female', lover='John', job='go school')
			print "John和Liz来自。。。此处省略1W字。。。"
			#打印三个人物初始化信息
			x = PrettyTable(["姓名", "年纪", "性别", "对象", "工作", "魅力值"])
			x.add_row(["John", "20", "male","Liz","support","50"])
			x.add_row(["Liz","20","female","John","student","50"])
			x.add_row(["Peter","20","male","self","student","80"])
			print x

		s_input = raw_input("进入 '相携情缘'，按 next 继续：")
		#友情提示部分
		if s_input.lower() != 'next':
			print "你个熊孩子，让你输入next，看好哈~"
			continue
		else:
			print "John 早年辍学，在一家网吧做起了网管...此处省略N个字..."
			print "Liz ...此处省略N个字..."
			print """
1、吃饭
2、买花
			"""
			choose = raw_input("你想做点什么，John：")
			# if choose = 1:
				# John =

if __name__ == '__main__':
	test()